package com.smile.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 1.在application.yml中配置数据源相关信息
 * 2.配置MyBatis-Plus
 * 1.使用MapperScan扫描mapper路径
 * 2.在application.yml中配置映射xml
 */
@EnableRedisHttpSession
@EnableCaching
@MapperScan("com.smile.product.dao")
@EnableDiscoveryClient
@SpringBootApplication
public class ProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
    }

}
